// 返回临时路径
export const FileUrl = (list) => {
	
	list = list.map(item => item.url)
	
	return new Promise((resolve, reject) => {
	    uniCloud.getTempFileURL({
	      fileList: list,
	      success: (res) => {
	        const urls = res.fileList.map(item => ({ url: item.tempFileURL,fileID: item.fileID }));
			// console.log(urls);
	        resolve(urls)
	      },
	      fail: (error) => {
	        reject(error)
	      }
	    })
	})
}